<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="./css/main.css">
    <link rel="stylesheet" href="./lib/layui/css/layui.css">
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a>
                <cite>部门与员工</cite></a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
            onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
        </a>
    </div>
    <div class="layui-fluid">
        <div class="layui-row" style="width: 1500px; display: inline-block">
            <!-- 左侧的树状导航栏 -->
            <div id="test1" class="left_tree"></div>
            <!-- 右侧表单区域 -->
            <div class="right">
                <!-- 部门信息：包括名称，负责人等 -->
                <div class="right_top"></div>
                <div class="right_main">
                    <table class="layui-hide" id="employee_tb"></table>
                </div>
            </div>

        </div>
    </div>
</body>
{#<script>#}
{#    layui.use('tree', function () {#}
{#        var tree = layui.tree;#}
{##}
{#        //渲染#}
{#        var inst1 = tree.render({#}
{#            elem: '#test1'  //绑定元素#}
{#            , data: [{#}
{#                title: '集团总部' ,//一级菜单#}
{#                id:1#}
{#                , children: [{#}
{#                    title: '总经办' ,//二级菜单#}
{#                    id:2#}
{#                    , children: [{#}
{#                        id:3,#}
{#                        title: '营销服务公司' //三级菜单#}
{#                        //…… //以此类推，可无限层级#}
{#                    },{#}
{#                        id:4,#}
{#                        title:'财务服务公司'#}
{#                    },{#}
{#                        id:5,#}
{#                        title:'配件服务公司'#}
{#                    },{#}
{#                        id:6,#}
{#                        title:'人资服务公司'#}
{#                    },{#}
{#                        id:7,#}
{#                        title:'运维服务公司',#}
{#                        children:[{#}
{#                            id:8,#}
{#                            title:"萧山站点"#}
{#                        }]#}
{#                    }#}
{#                    ]#}
{#                }]#}
{#            }]#}
{#        });#}
{##}
{##}
{#</script>#}
<script>

    var app = new Vue({
        el: "#app",
        data: {
            name: "",
            count: "10",
            avg: "3",
            items: "",
            flag:false

        },
        created: function(){
            this.send();
        },
        methods: {

            },
            send: function () {
                axios({
                    method:'get',
                    url:"http://127.0.0.1:8000/jiekou/"
                }).then(function (res) {
                   console.info(res.data);
                });
            }



    })

</script>

</html>
